Randomized Quicksort and the Entropy of the Random Source
نویسندگان
چکیده
The worst-case complexity of an implementation of Quicksort depends on the random number generator that is used to select the pivot elements. In this paper we estimate the expected number of comparisons of Quicksort as a function in the entropy of the random source. We give upper and lower bounds and show that the expected number of comparisons increases from n logn to n, if the entropy of the random source is bounded. As examples we show explicit bounds for distributions with bounded min-entropy and the geometrical distribution.
منابع مشابه
Randomized Quicksort and the Entropy of the Random Number Generator
The worst-case complexity of an implementation of Quicksort depends on the random number generator that is used to select the pivot elements. In this paper we estimate the expected number of comparisons of Quicksort as a function in the entropy of the random source. We give upper and lower bounds and show that the expected number of comparisons increases from n log n to n, if the entropy of the...
متن کاملA Noble Randomized Quicksort with a Random Number Generator
Sorting is a well-known computational problem. Sorting means arranging a set of records (or a list of keys) in some (increasing or decreasing) order. Randomized algorithms often have low complexity and are associated to robustness bounds, which are generally less conservative than the classical ones. This paper presents a noble randomized Quicksort with a random number generator. This randomize...
متن کاملIntroduction to Randomized Algorithms: QuickSort and QuickSelect
QuickSort Hoare [1962] (A) Pick a pivot element from array (B) Split array into 3 subarrays: those smaller than pivot, those larger than pivot, and the pivot itself. (C) Recursively sort the subarrays, and concatenate them. Randomized QuickSort (A) Pick a pivot element uniformly at random from the array (B) Split array into 3 subarrays: those smaller than pivot, those larger than pivot, and the...
متن کاملIntroduction to Randomized Algorithms: QuickSort and QuickSelect
QuickSort Hoare [1962] (A) Pick a pivot element from array (B) Split array into 3 subarrays: those smaller than pivot, those larger than pivot, and the pivot itself. (C) Recursively sort the subarrays, and concatenate them. Randomized QuickSort (A) Pick a pivot element uniformly at random from the array (B) Split array into 3 subarrays: those smaller than pivot, those larger than pivot, and the...
متن کاملCse525: Randomized Algorithms and Probabilistic Analysis Lecture 1
The main theme of this class is randomized algorithms. We start by comparing these to the deterministic algorithms to which we are so accustomed. In the deterministic model of computation (Turing machines and RAM), an algorithm has fixed behavior on every fixed input. In contrast, in the randomized model of computation, algorithms take additional input consisting of a stream of random bits. The...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 2004